安全防范

与“安全防范”标签相关聚合资讯

  • Linux Centos7.X系统中,如何利用iptables和ipset屏蔽恶意ip访问?

    Linux Centos7.X系统中,如何利用iptables和ipset屏蔽恶意ip访问?

    IPSET重启会消失创建ipset((hash:net包括ip段,hash:ip仅含单个ip)ipset create badlist hash:net删除ipsetipset destroy badlist指定ipset容量。默认可以存储65536个元素ipset create badlist hash:ip maxelem 10000003.加入一个ip或者IP段ipset add badlist 10.20.30.0/24ipset add badlist 183.46.194.1074.去除名

  • 如何禁止特定目录下运行php木马文件?

    如何禁止特定目录下运行php木马文件?

    分析您网站哪些目录不需要运行php脚本文件,然后将其予以禁止,示范代码如下:#禁止特定目录下运行php脚本文件location ~* ^\/(uploadfile|style|statics)\/.*\.(php)$ {deny all;}